package conson.tech.manage.api.coupons.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 优惠券核销明细
 *
 * @author guoxt
 * @date 2020/8/8
 */
@Data
public class CouponAppliedDetailDTO {
    /**
     * 优惠券券码
     */
    @ApiModelProperty(value = "优惠券券码(必填)")
    private String couponCode;
    /**
     * 优惠券使用范围ID
     */
    @ApiModelProperty(value = "优惠券使用范围ID(必填)")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long usingId;
    /**
     * 优惠券金额
     */
    @ApiModelProperty(value = "优惠券金额(选填)")
    private BigDecimal batchMoney;
}
